package com.lemurian.bankdata.lite.enums;

public enum ActivityLog {

	UNKNOWN(900),
    LOGIN(901),
    LOGOUT(902),

    MERCHANT_LIST(2),
    MERCHANT_ADD(3),
    MERCHANT_REMOVED(4),
    MERCHANT_EDIT(5),

    USERS_LIST(7),
    USERS_ADD(8),
    USERS_REMOVED(9),
    USERS_EDIT(10),

    CHANGE_PASSWORD(11),

    MENU_LIST(14),
    MENU_ADD(15),
    MENU_REMOVED(16),
    MENU_EDIT(17),

    ACCOUNT_ACTIVATION(18),
    FIRST_PASSWORD_SETTING(19),

    ROLE_LIST(21),
    ROLE_ADD(22),
    ROLE_REMOVED(23),
    ROLE_EDIT(24);

    Integer type;
    ActivityLog(Integer type) {
        this.type = type;
    }

    public Integer value() {
        return type;
    }

    public static ActivityLog getLookup(Integer c) {
        ActivityLog[] types = ActivityLog.values();
        for (ActivityLog ttype : types) {
            if (c.equals(ttype.value())) {
                return ttype;
            }
        }
        return null;
    }
}

